package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class UserBlogSpotSubscriptionBase{
	boolean[] modified=new boolean[6];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public UserBlogSpotSubscriptionBase(){}
	public UserBlogSpotSubscriptionBase(java.lang.Long userId,java.lang.Integer blogSpotId,java.lang.Integer subscritptionType,java.util.Date startDate,java.lang.String discription,java.lang.Integer publicPolicy){
		setUserId(userId);
		setBlogSpotId(blogSpotId);
		setSubscritptionType(subscritptionType);
		setStartDate(startDate);
		setDiscription(discription);
		setPublicPolicy(publicPolicy);
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setBlogSpotId(java.lang.Integer blogSpotId){
		if(blogSpotId!=null) {
			set("blogSpotId",blogSpotId);
			this.modified[1] =true;
		}
	}
	public java.lang.Integer getBlogSpotId(){
		return (java.lang.Integer)get("blogSpotId");
	}
	public void setSubscritptionType(java.lang.Integer subscritptionType){
		if(subscritptionType!=null) {
			set("subscritptionType",subscritptionType);
			this.modified[2] =true;
		}
	}
	public java.lang.Integer getSubscritptionType(){
		return (java.lang.Integer)get("subscritptionType");
	}
	public void setStartDate(java.util.Date startDate){
		if(startDate!=null) {
			set("startDate",startDate);
			this.modified[3] =true;
		}
	}
	public java.util.Date getStartDate(){
		return (java.util.Date)get("startDate");
	}
	public void setDiscription(java.lang.String discription){
		if(discription!=null) {
			set("discription",discription);
			this.modified[4] =true;
		}
	}
	public java.lang.String getDiscription(){
		return (java.lang.String)get("discription");
	}
	public void setPublicPolicy(java.lang.Integer publicPolicy){
		if(publicPolicy!=null) {
			set("publicPolicy",publicPolicy);
			this.modified[5] =true;
		}
	}
	public java.lang.Integer getPublicPolicy(){
		return (java.lang.Integer)get("publicPolicy");
	}
}
